
//  Copyright (C) 2007 Richard Uhler

//?d:Function.prototype.call standard
//?e:abcdthisisme

// Call takes the this value and arguments and applies the function.

// foo prints all of its args, then calls this.print()
function foo()
{
    for (var i = 0; i < arguments.length; i++)
    {
        print(arguments[i]);
    }
    this.print();
}

thisobj = {};
thisobj.print = function() { print("thisisme"); };
foo.call(thisobj, "a", "b", "c", "d");

